<% @album.post_sessions.each do |post_session| %>
  <div class="thenew">
    <div class="picture">
      <%= valleyer_logo_image_tag post_session.created_by_valleyer, :width => 57, :height => 57 %>
    </div>
    <div class="plate">
      <% post_session.posts.each do |post| %>
        <div id="post_<%= post.id %>" class="minute" style="<%= post == @old_post ? 'display:none':'' %>">
          <div class="user">
            <%= link_to post.created_by_valleyer.nick_name, valleyer_url(post.created_by_valleyer), :class => :name, :target => '_blank' %>
            <p class="time">发表于<%= time_ago_in_words post.created_at, false %>前</p>
            <%= link_to_remote('删除',
              :update => "album_review",
              :url => valleyers_show_albums_show_photos_show_entries_show_post_url(post),
	      :confirm => "确认删除?",
              :method => :delete,
              :loading => "Effect.Fade('post_#{post.id}')",
              :html => {
                :class => :operate
              }
            ) if loggined_by? post.created_by_valleyer
          %>
    <%#*<a class="operate" href="javascript:;">举报</a>%>
          </div>
          <div class="content"><%= h post.content %></div>
        </div>
      <% end %>
      <div id="restore_<%= post_session.id %>" class="restore">
        <%= link_to_remote image_tag('valleyer/reply.jpg'),
          :update => "restore_#{post_session.id}",
          :url => new_valleyers_show_albums_show_photos_show_entries_show_post_url(
          :album_id => @album.id,
          :session_id => post_session.id
        ),
          :method => :get,
          :html => {
          :title => '点击回复'
        } %>
      </div>
    </div>
  </div>
<% end %>
<% if loggined_by_valleyer? %>
<div class="entering_seat">
  <div class="title">我要评论相册：</div>
  <div class="submit">
    <%= render :file => 'valleyers/show/albums/show/photos/show/entries/show/posts/new.html'%>
  </div>
</div>
<% end %>
<% if @old_post %>
  <script type="text/javascript">
    Effect.Appear('post_<%= @old_post.id %>')
  </script>
<% end %>